package com.tyqx.hashchaindao.mapper;


import com.tyqx.hashchainbean.module.SysUser;
import com.tyqx.hashchainbean.vo.SysUpdaUserPwdVO;
import com.tyqx.hashchainbean.vo.SysUserModifyVO;
import com.tyqx.hashchainbean.vo.SysUserSaveVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysUserMapper {

	public SysUser getById(@Param(value = "userId") Long userId)throws Exception;

	public SysUser getSysUserByUserCode(@Param("userCode") String userCode)throws Exception;

	public List<SysUser>	getListByMap(Map<String, Object> param)throws Exception;

	public Integer getCountByMap(Map<String, Object> param)throws Exception;

	public Integer save(SysUserSaveVO sysUserSaveVO)throws Exception;

	public Integer modify(SysUserModifyVO sysUserModifyVO)throws Exception;

	public Integer removeById(@Param(value = "userId") Long userId)throws Exception;

	public List<SysUser> getSysUserListByMap(Map<String, Object> param)throws Exception;


	public Integer updateActivate(@Param("userActivate") Integer userActivate, @Param("userId") Long userId);

	//更新系统用户信息
	public Integer getUserModify(SysUser sysUser);

	//更改用户密码
	public Integer updateUserPwdById(SysUpdaUserPwdVO sysUpdaUserPwdVO);

	//sys页面删除按钮
	public Integer delActivate(@Param("userActivate") Integer userActivate, @Param("userId") Long userId);
}
